<?php


namespace TbfRuntime;

//单线程测试运行时
use TbfRuntime\Session\ArraySession;
use TbfRuntime\Session\SessionProvider;

class SingleThreadTestRuntime implements RuntimeProvider{
    private $session = null;
    /**
     * @return SessionProvider
     */
    function getSessionProvider(){
        if ($this->session===null){
            $this->session = new ArraySession();
        }
        return $this->session;
    }

    function doExit(){
        throw new SingleThreadExitException;
    }

    function outHeader($key,$value){
        //暂时啥也不做
        return;
    }
} 